package cn.anoxia.springframework.beans.service.event;

import cn.anoxia.springframework.context.event.ApplicationContextEvent;

/**
 * The class CustomEvent.
 * <p>
 * Description:
 *
 * @author: huangle
 * @since: 2021/08/30 11:25
 */
public class CustomEvent extends ApplicationContextEvent {

  private Long id;
  private String message;

  /**
   * Constructs a prototypical Event.
   *
   * @param source The object on which the Event initially occurred.
   * @throws IllegalArgumentException if source is null.
   */
  public CustomEvent(Object source,Long id, String message) {
    super(source);
    this.id = id;
    this.message = message;
}

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }
}
